﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StoreTransport.Business.Constants {
    public class CommonConstant {
       
        public static List<ComboBoxItem> Status = new List<ComboBoxItem>();
        public static List<ComboBoxItem> MarketType = new List<ComboBoxItem>();
        public static List<ComboBoxItem> ShipmentDay = new List<ComboBoxItem>();

        public static Dictionary<string, string> StatusDic = new Dictionary<string, string>();
        public static Dictionary<string, string> MarketTypeDic = new Dictionary<string, string>();
        public static Dictionary<string, string> MarketKindDic = new Dictionary<string, string>();
        public static Dictionary<string, string> ShipmentDayDic = new Dictionary<string, string>();
        public static Dictionary<string, string> ReportType = new Dictionary<string, string>();

        public const string DefaultDateFormat = "dd/MM/yyyy";

        public const string ScreenSeparator = "#";
        public const string ConnectionStringParten = "Data Source=.\\SQLEXPRESS;AttachDbFilename={0};Integrated Security=True;Connect Timeout=30;User Instance=True";
        public const string ConnectionStringPrefix = "Data Source=.\\SQLEXPRESS;AttachDbFilename=";
        public const string ConnectionStringSubFix = ";Integrated Security=True;Connect Timeout=30;User Instance=True";
        public const string ConnectionStringKey = "StoreTransportDBConnectionString";

        public const string ExcelFileExtendtion = ".xlsx";
    }
    public class ComboBoxItem {
        public string Text { get; set; }
        public string Value { get; set; }
        public ComboBoxItem(string value, string text) {
            Text = text;
            Value = value;
        }
    }
    /// <summary>
    /// M = market, S = Store, P = PresentStore, C = Store Center
    /// </summary>
    public enum MarketType { 
        M,
        S,
        P,
        C
    }

    /// <summary>
    /// A = Active, I = Inactive
    /// </summary>
    public enum Status { 
        A,
        I
    }

    /// <summary>
    /// V = Valid, I = Invalid
    /// </summary>
    public enum ValidData {
        V,
        I
    }

    public enum ReportType {None, StoreTS, MarketTS, StoreMakertTS, MarketStoreTS };
}
